package org.wutopia.leocloud.domain.security.domain;


import com.nimbusds.jose.JOSEException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.wutopia.leocloud.domain.security.domain.client.AccountServiceClient;
import org.wutopia.leocloud.domain.security.domain.dto.AuthenticationServiceLoginDTO;
import org.wutopia.leocloud.domain.security.resource.vo.AuthenticationResourceLoginOutputVO;
import org.wutopia.leocloud.library.common.domain.account.Account;

import java.util.List;

@Service
public class AuthenticationService {

    @Autowired
    private AccountServiceClient accountServiceClient;

    public AuthenticationResourceLoginOutputVO login(AuthenticationServiceLoginDTO loginDTO) throws JOSEException {

        Account user = accountServiceClient.getUser(loginDTO.getUsername());



        return null;
    }
}
